Skip to content

Comments

fix: Resolve PowerShell wildcard issue in NuGet publish workflow#31

Merged
afonsoft merged 1 commit intomainfrom
feature/update-actions
Feb 18, 2026
Merged

fix: Resolve PowerShell wildcard issue in NuGet publish workflow#31
afonsoft merged 1 commit intomainfrom
feature/update-actions

Conversation

@afonsoft
Copy link
Owner

CI/CD Fixes

  • PowerShell Wildcard: Fixed Get-ChildItem for proper file enumeration
  • File Upload: Replaced wildcard patterns with ForEach-Object loop
  • Cross-Platform: Ensured compatibility with Windows PowerShell

Technical Details

  • Fixed "File does not exist (./packages/*.nupkg)" error
  • Used Get-ChildItem -Filter to enumerate .nupkg files
  • Applied ForEach-Object to process each package individually
  • Maintained same functionality for both GitHub Packages and NuGet.org publishing

Impact

  • ✅ CI/CD pipeline now works correctly on Windows runners
  • ✅ Package publishing no longer fails with wildcard errors
  • ✅ Maintained backward compatibility with existing workflow

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you lint your code locally prior to submission?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

## CI/CD Fixes
- **PowerShell Wildcard**: Fixed Get-ChildItem for proper file enumeration
- **File Upload**: Replaced wildcard patterns with ForEach-Object loop
- **Cross-Platform**: Ensured compatibility with Windows PowerShell

## Technical Details
- Fixed "File does not exist (./packages/*.nupkg)" error
- Used Get-ChildItem -Filter to enumerate .nupkg files
- Applied ForEach-Object to process each package individually
- Maintained same functionality for both GitHub Packages and NuGet.org publishing

## Impact
- ✅ CI/CD pipeline now works correctly on Windows runners
- ✅ Package publishing no longer fails with wildcard errors
- ✅ Maintained backward compatibility with existing workflow
@afonsoft afonsoft merged commit c292509 into main Feb 18, 2026
13 of 16 checks passed
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant